#!/bin/bash
layout="dot";
#layout="fdp";
#layout="sfdp";
#format="jpg"
format="svg"
#format="png"
for file in `ls ${1}`
do
	#dir=`dirname "${1}"`
	#fic=`basename ${file} .dot`
	echo "${file} "
	#echo "${1}$fic"
	ext=${file##*.}
	if [ $ext == "dot" ]; then
		$layout -Gcharset=latin1 "${1}${file}" -T${format} -o "${1}`basename ${file} .dot`.${format}"
	fi
done
